﻿@model Tippelde.Services.Dtos.GroupHeaderData
@{
    
    string actionName = ViewBag.ActionName;
    ViewBag.Title = "Csoport " + (actionName=="Edit" ? "szerkesztése" : "létrehozása");
}

<div class="row">
<div class="col-lg-6">
<div class="well">
@using(Html.BeginForm(actionName, "Group", FormMethod.Post, new { @class="form-horizontal"}))
{
    @Html.ValidationSummary();
    @Html.AntiForgeryToken();
    @Html.HiddenFor(m => m.Id);
<fieldset>
    <legend>Csoport @(actionName=="Edit" ? "szerkesztése" : "létrehozása")</legend>
    <div class="form-group">
        @Html.LabelFor( m => m.Name, new { @class="col-lg-3 control-label"})
        <div class="col-lg-9">
            @Html.TextBoxFor( m => m.Name, new { @class="form-control"})
        </div>
    </div>
    <div class="form-group">
        @Html.LabelFor( m => m.ShortName, new { @class="col-lg-3 control-label"})
        <div class="col-lg-9">
            @Html.TextBoxFor( m => m.ShortName, new { @class="form-control"})
        </div>
    </div>
    <div class="form-group">
       @Html.LabelFor( m => m.Description, new { @class="col-lg-3 control-label"})
        <div class="col-lg-9">
            @Html.TextAreaFor( m => m.Description, new { @class="form-control" })
        </div>
    </div>
    <div class="form-group">
        <div class="col-lg-9 col-lg-offset-3">
            <button type="submit" class="btn btn-default">Mentés</button>
        </div>
    </div>
</fieldset>
}
</div>
</div>
</div>